package zoodemo;

public class    ZooMainApp {
        public static void main(String[] args) {
            Feeder feeder=new Feeder("张三");
            Cat cat=new Cat("美短");
            Dog dog=new Dog("金毛");
            Food f1=new Food("小鱼罐头");//对象的名字是f1
            feeder.feed(f1,cat);
            feeder.feed(new Food("肉骨头"),dog);//匿名对象
            //Animal animal=new Animal();//抽象类不能创建对象


        }
    }

